package com.alliky.home.mvp.model;

import com.alliky.core.entity.BannerEntity;
import com.alliky.core.entity.vo.CategoryVO;
import com.alliky.core.entity.vo.GoodsVO;
import com.alliky.core.base.BaseModel;
import com.alliky.home.mvp.contract.HomeContract;

import java.util.HashMap;
import java.util.List;

import io.reactivex.Observable;

/**
 * @Description TODO
 * @Author wxianing
 * @Date 2020-12-18
 */
public class HomeModel extends BaseModel implements HomeContract.Model {

    @Override
    public Observable<List<BannerEntity>> getBanner(HashMap hashMap) {
        return mService.getBanner(hashMap);
    }

    @Override
    public Observable<List<CategoryVO>> getCategory(HashMap hashMap) {
        return mService.getCategory(hashMap);
    }

    @Override
    public Observable<List<GoodsVO>> getHotGoods(HashMap hashMap) {
        return mService.getHotGoods(hashMap);
    }

    @Override
    public void onDestroy() {

    }
}
